package com.example.config;

import com.example.factory.SysClientServerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JobHandlerConfig {

    @Value("${job.admin.url}")
    private String baseUrl;

    @Value("${server.port}")
    private int port;

    @Bean
    public SysClientServerFactory sysClientServerFactory() {
        return new SysClientServerFactory(baseUrl, port);
    }
}
